<h3>Actions List</h3>
<?php
if(!empty($this->controllerData['actions'])) {
	echo '<ul>';
	foreach($this->controllerData['actions'] as $num => $action) {
		echo '<li><a href="'.$this->baseURL().'/apidesigner/'.$this->moduleName.'/'.$this->controllerName.'/'.$action['name'].'/">'.$action['name'].'</a> - '.$action['description'].'</li>';
	}
	echo '</ul>';	
} else echo 'no action defined so far';

?>

<h3>Create new action</h3>
<form action="<?php echo $this->baseURL() ?>/apidesigner/index/createnewaction/" method="post">
<input type="hidden" name="moduleName" value="<?php echo $this->moduleName ?>" />
<input type="hidden" name="controllerName" value="<?php echo $this->controllerName ?>" />
Action Name: <input type="text" name="actionName" /><br />
Action Definition: <textarea name="actionDescription" cols="40" rows="4"></textarea><br />
<button type="submit">Create new action</button>
</form>

